﻿namespace Traffic.Entity;

/// <summary>
/// 班次表
/// </summary>
public partial class Frequency
{
    public int Id { get; set; }

    /// <summary>
    /// 从AppointOrderList.OrderNum生成的副线路
    /// </summary>
    public string? FromAppointOrderNum { get; set; }

    /// <summary>
    /// 商户ID，对应Company.ID
    /// </summary>
    public int CompanyId { get; set; }

    /// <summary>
    /// 类型ID  对应BusLineType.ID
    /// </summary>
    public int TypeId { get; set; }

    /// <summary>
    /// 线路类型名称  对应BusLineType.TypeName
    /// </summary>
    public string TypeName { get; set; } = null!;

    /// <summary>
    /// 班次号
    /// </summary>
    public string FreNumber { get; set; } = null!;

    /// <summary>
    /// 线路名称
    /// </summary>
    public string LineName { get; set; } = null!;

    public int? ModelPlaceId { get; set; }

    /// <summary>
    /// 模板ID  对应BusLineModel.ID
    /// </summary>
    public int ModelId { get; set; }

    /// <summary>
    /// 出发日期
    /// </summary>
    public DateTime SetDate { get; set; }

    /// <summary>
    /// 出发时间
    /// </summary>
    public DateTime SetTime { get; set; }

    /// <summary>
    /// 终点省
    /// </summary>
    public string? OriginProvince { get; set; }

    /// <summary>
    /// 终点城市
    /// </summary>
    public string? OriginCity { get; set; }

    public DateTime CreateDate { get; set; }

    /// <summary>
    /// 行程总公里数
    /// </summary>
    public decimal TotalKilo { get; set; }

    /// <summary>
    /// 乘车总时长（分钟）
    /// </summary>
    public int TotalMinute { get; set; }

    /// <summary>
    /// 班次间隔（分钟）
    /// </summary>
    public int IntervalMinute { get; set; }

    /// <summary>
    /// 包车价格
    /// </summary>
    public decimal CharteredPrice { get; set; }

    /// <summary>
    /// 票价
    /// </summary>
    public decimal Price { get; set; }

    /// <summary>
    /// VIP价格
    /// </summary>
    public decimal VipPrice { get; set; }

    /// <summary>
    /// 最大乘客数
    /// </summary>
    public int MaxMember { get; set; }

    /// <summary>
    /// 当前乘客数
    /// </summary>
    public int NowMember { get; set; }

    /// <summary>
    /// 成人数
    /// </summary>
    public int Adult { get; set; }

    /// <summary>
    /// 小童数
    /// </summary>
    public int Child { get; set; }

    /// <summary>
    /// 婴儿数
    /// </summary>
    public int Baby { get; set; }

    /// <summary>
    /// 客运类别  直达、普通
    /// </summary>
    public string? TrafficType { get; set; }

    /// <summary>
    /// 线路种类  省际、市际、县际、县内、港澳、国际
    /// </summary>
    public string? LineType { get; set; }

    /// <summary>
    /// 班次种类  始发、配客
    /// </summary>
    public string? FrequencyType { get; set; }

    /// <summary>
    /// 班次类型  正班、加班、顶班
    /// </summary>
    public string? FrequencyModel { get; set; }

    /// <summary>
    /// 巴士类型 特大型、大型、中型、小型
    /// </summary>
    public string? CarModel { get; set; }

    /// <summary>
    /// 车辆等级  高三级、高二级、高一级、中级、普通级
    /// </summary>
    public string? CarLevel { get; set; }

    /// <summary>
    /// 站场服务费
    /// </summary>
    public decimal StationServicePrice { get; set; }

    /// <summary>
    /// 全票价格上限
    /// </summary>
    public decimal FullTicketMaxPrice { get; set; }

    /// <summary>
    /// 全票执行价
    /// </summary>
    public decimal FullTicketPrice { get; set; }

    /// <summary>
    /// 半票价
    /// </summary>
    public decimal HalfTicketPrice { get; set; }

    /// <summary>
    /// 学生票价
    /// </summary>
    public decimal StudentTicketPrice { get; set; }

    /// <summary>
    /// 残疾军人票价
    /// </summary>
    public decimal DisabledArmymanTicketPrice { get; set; }

    /// <summary>
    /// 座位类型  座位、卧铺
    /// </summary>
    public string SitType { get; set; } = null!;

    /// <summary>
    /// 是否商务大巴  1:是  0：否
    /// </summary>
    public bool IsBusinessBus { get; set; }

    /// <summary>
    /// 对应BusList.ID
    /// </summary>
    public int CarId { get; set; }

    /// <summary>
    /// 车牌号码
    /// </summary>
    public string? CarNo { get; set; }

    /// <summary>
    /// 对应Driver.ID
    /// </summary>
    public int DriverId { get; set; }

    /// <summary>
    /// 司机姓名
    /// </summary>
    public string? DriverName { get; set; }

    /// <summary>
    /// 线路备注
    /// </summary>
    public string? Remarks { get; set; }

    /// <summary>
    /// 是否为可接送班次  默认0否   1是
    /// </summary>
    public bool IsPickup { get; set; }

    /// <summary>
    /// True:私有线路，不与其他商户混线。  False:公有线路，可与其他商户混搭。
    /// </summary>
    public bool IsPrivate { get; set; }

    /// <summary>
    /// 班次状态  默认1：正常  0：作废
    /// </summary>
    public bool Status { get; set; }

    /// <summary>
    /// 是否已上传到交通局服务器
    /// </summary>
    public bool IsFinished { get; set; }

    /// <summary>
    /// 是否促销线路 0：否（默认正常班次）  1：是
    /// </summary>
    public bool IsPromotion { get; set; }

    /// <summary>
    /// 是否去程  0：否 返程    1：是 去程（默认）
    /// </summary>
    public bool IsGo { get; set; }

    /// <summary>
    /// 班车（默认）  专车
    /// </summary>
    public string GoodsType { get; set; } = null!;

    /// <summary>
    /// 安检验票状态  0：候车中  1：开始安检验票
    /// </summary>
    public bool CheckState { get; set; }

    /// <summary>
    /// 空港接口原站点编码
    /// </summary>
    public string? OriginStationCode { get; set; }

    /// <summary>
    /// 空港接口出发站点以销定产
    /// </summary>
    public string? DepartStationCode { get; set; }

    /// <summary>
    /// 空港接口到达站点编码
    /// </summary>
    public string? DestinationStationCode { get; set; }

    /// <summary>
    /// 使用南粤通API
    /// </summary>
    public bool UseNanYueApi { get; set; }

    /// <summary>
    /// 南粤通线路唯一ID
    /// </summary>
    public long NanYueHashId { get; set; }

    /// <summary>
    /// 空港接口runsCode
    /// </summary>
    public string? RunsCode { get; set; }
}
